import { defineStore } from 'pinia'

// 菜单状态
interface menu {
  headerActive: string
  asideActive: string
  menuList: any[]
  asideList: any[]
  buttonAuth: any[]
}
export const menuStore = defineStore('menu', {
  persist: {
    storage: window.sessionStorage
  },
  state: (): menu => ({
    headerActive: '',
    asideActive: '',
    menuList: [],
    asideList: [],
    buttonAuth: []
  }),
  getters: {},
  actions: {}
})
